<template>
  <div id="vuex" class="">
    <div class="vuex">
      <li>{{$store.state.isHShow}} , {{$store.state.isFShow}}</li>
      <li @click="_showHideHeader">显示隐藏头部</li>
      <li @click="_showHideFooter">显示隐藏底部</li>
      <li @click="_showHideHeaderFooter">显示隐藏头部和底部</li>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'vuex',
    data() {
      return {}
    },
    mounted() {

    },
    methods: {
      _showHideHeader(){
        this.$store.commit('isHShow_Controller');
      },
      _showHideFooter(){
        this.$store.commit('isFShow_Controller');
      },
      _showHideHeaderFooter(){
        this.$store.dispatch('isHShow_isFShow_Controller');
      }
    }
  }
</script>

<style lang="scss" scoped>

  .vuex li{
    text-align: center;
    line-height: .5rem;
    font-size: .20rem;
  }

</style>
